package me.send.produce.client.controller;

import java.util.Map;

import me.send.business.base.SendVariable;
import me.send.business.service.service.SysconfigService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="sysconfig",method=RequestMethod.POST)
public class SysconfigController {

	@Autowired
	private SysconfigService sysconfigService;
	
	//  关于呼送
	@RequestMapping("about")
	@ResponseBody
	public Map<String, Object> about(String devicenumber){
		return sysconfigService.object_keye(devicenumber,SendVariable.CONFIG_ABOUT);
	}
	
	// 呼送热线 
	@RequestMapping("phone")
	@ResponseBody
	public Map<String, Object> phone(String devicenumber){
		return sysconfigService.object_keye(devicenumber,SendVariable.CONFIG_PHONE);	
	} 
	
	// 用户注册协议
	@RequestMapping("user/reg")
	@ResponseBody
	public Map<String, Object> user_reg(String devicenumber){
		return sysconfigService.object_keye(devicenumber,SendVariable.CONFIG_USER_REG);	
	} 
}
